An example of the drawing API X axis (with a scale)

[No canvas support]

This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.common.dynamic.js"></script>
<script src="RGraph.common.tooltips.js"></script>
<script src="RGraph.drawing xaxis.js"></script>
<script src="RGraph.bar.js"></script>
Put this where you want the chart to show up:
<canvas id="cvs" width="600" height="250">
    [No canvas support]
</canvas>
This is the code that generates the chart:
<script>
    window.onload = function ()
    {
        var scatter = new RGraph.Scatter({
            id: 'cvs',
            data: [[50,432],[423,485],[375,500],[123,369],[411,149]],
            options: {
                ymax: 500,
                xmax: 500,
                xaxis: false,
                noyaxis: true,
                textAccessible: true
            }
        }).draw()



        var xaxis = new RGraph.Drawing.XAxis({
            id: 'cvs',
            y: scatter.canvas.height - 30,
            options: {
                min: 5,
                max: 0,
                yaxispos: 'right',
                xaxispos: 'center',
                textAccessible: true
            }
        }).draw()
    };
</script>